﻿<UserControl x:Class="KSAWPFDemo.ThreeDManipulation.ThreeDBrowser"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:HelixToolkit ="http://helixtoolkit.codeplex.com"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Background="#33a0aFFF">
        <!-- The HelixViewport3D supports camera manipulation, and can be used just like the Viewport3D -->
        <HelixToolkit:HelixViewport3D ZoomExtentsWhenLoaded="True" Name="viewPort" CameraRotationMode="Trackball" Opacity="1">
           
        <!-- Remember to add light to the scene -->
        <HelixToolkit:ThreePointLights Distance="100"></HelixToolkit:ThreePointLights>


        <!-- The content of this visual is defined in MainViewModel.cs -->
        <!--HelixToolkit:FileModelVisual3D  Source="c:\meshes\test\dragon.obj" x:Name="ship"/-->
            <!--HelixToolkit:FileModelVisual3D  Source="C:\meshes\280571main_SSO_3DS\SpaceShuttleOrbiter.3ds" x:Name="ship"/-->
        <!--HelixToolkit:FileModelVisual3D  Source="c:\meshes\MFalcon\mfalcon.3ds" x:Name="ship"/-->
        <HelixToolkit:FileModelVisual3D  Source="C:\meshes\273689main_lunarlandernofoil_c\lunarlandernofoil_carbajal.3ds" x:Name="ship"/>


        <!--HelixToolkit:BoxVisual3D Width="40" Height="40" Length="40" Fill="Green" x:Name="ship" /-->


        <!--HelixToolkit:FileModelVisual3D  Source="c:\meshes\1701D3DS.3ds" x:Name="ship"/-->
        <!--HelixToolkit:FileModelVisual3D  Source="c:\meshes\enter1701.3ds" x:Name="ship"/-->

        </HelixToolkit:HelixViewport3D>

        <Canvas Name="mainCanvas" Background="LightGray" Opacity="0" TouchDown="Grid_TouchDown_1" TouchUp="Grid_TouchUp_1" TouchMove="Grid_TouchMove_1" IsHitTestVisible="False">
            <!--Label Foreground="Red" Name="Debug" Height="25"></Label-->
        </Canvas>
        <Button Content="Manipulate" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="90" Margin="50" Height="46"/>
        <Label Content="Debug" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="200" Margin="30" Name="debug" Opacity=".5"/>
    </Grid>
</UserControl>
